<!-- Logout -->
<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<% session.setAttribute("idioma", session.getAttribute("idioma")); %>
<% String idi = (String) session.getAttribute("idioma"); %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<% if(session.getAttribute("userName") == null)
{
    response.sendRedirect("/index.jsp");
}
else
{  
    session.removeAttribute("userName"); 
    session.removeAttribute("userPermis"); %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <fmt:setLocale value="<%=idi%>"/>
    <fmt:bundle basename="etiquetas" >
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <meta http-equiv="refresh" content="3; URL=index.jsp" />
            <link rel="stylesheet" type="text/css" href="css/general.css" />
            <link rel="shortcut icon" href="../images/icons/favicon.ico"/>
            <title><fmt:message key="titulo" /></title>
        </head>
        <body>

            <!-- Contenedor principal-->
            <div id="contenedor">

                <!--Cabecera-->
                <div id="headerGeneral">
                    <jsp:include page="/WEB-INF/include/header.jsp" />
                </div>

                <!-- Contenido de la pagina -->
                <div id="content">

                      <!-- Contenido de la columna derecha -->
                      <div id="contentRight">
                            <p>
                                <span class="contentHeader" >
                                    <fmt:message key="logout_correcto" />
                                </span>
                                <fmt:message key="texto_logout" />
                             </p>
                    </div>
                </div>
                             
            <!-- Pie de pagina -->
            <%@include file="/WEB-INF/include/footer.jsp" %>
            </div>
        </body>
            
    </fmt:bundle>
    </html>
<% } %>